﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Top_Meeting.UI
{
    class Skin
    {
        public static Dictionary<string, Image> _Resources = new Dictionary<string, Image>();

        public static string imgFilter = ".png";

        public static Image Images(string resName)
        {
            if (!resName.EndsWith(imgFilter))
                resName += imgFilter;

            if (_Resources.ContainsKey(resName))
            {
                //Debug.WriteLine("LOG:" + resName);

                return _Resources[resName];
            }

            Debug.WriteLine("WAR:" + resName + " is not found");

            return null;
        }        
    }
}
